package sg.edu.nus.iss.vmcs.system;

/*
 * Copyright 2003 ISS.
 * The contents contained in this document may not be reproduced in any
 * form or by any means, without the written permission of ISS, other
 * than for the purpose for which it has been supplied.
 *
 */

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

/**
 * Action listener for handling clicking of the Activate Customer Panel button
 * 
 * @version 1.0 11 Oct 2008
 * @author Toh Kim Huat
 */

public class ActivateCustomerPanelButtonListener implements ActionListener {

	/**
	 * Reference to the simulation controller
	 */
	private SimulationController simulationController;
	
	/**
	 * Default constructor
	 * @param simulationController Reference to the simulation controller
	 */
	public ActivateCustomerPanelButtonListener(SimulationController simulationController) {
		this.simulationController = simulationController;
	}

	public void actionPerformed(ActionEvent arg0) {
		this.simulationController.setupCustomer();
	}

}
